package com.exia.android.socialnet.facebook;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;

public class FacebookDialogListener extends BaseDialogListener {

	private FacebookActivity activity;
	
	FacebookDialogListener(FacebookActivity activity_p){
		super();
		activity = activity_p;
	}
	
	@Override
	public void onComplete(Bundle values) {
		final String postId = values.getString("post_id");
        if ((postId != null)&&(activity != null)) {
        	/*
            Log.d("Facebook-Example", "Dialog Success! post_id=" + postId);
            activity.mAsyncRunner.request(postId, new FacebookWallPostListener(activity));
            activity.mDeleteButton.setOnClickListener(new OnClickListener() {
                public void onClick(View v) {
                    activity.mAsyncRunner.request(postId, new Bundle(), "DELETE",
                            new FacebookWallPostDeleteListener(activity));
                }
            });
            activity.mDeleteButton.setVisibility(View.VISIBLE);
            */
        } else {
            Log.d("Facebook-Example", "No wall post made");
        }
	}

}
